<!doctype html>
<!-- The DOCTYPE declaration above will set the    -->
<!-- browser's rendering engine into               -->
<!-- "Standards Mode". Replacing this declaration  -->
<!-- with a "Quirks Mode" doctype may lead to some -->
<!-- differences in layout.                        -->

<html>
<head>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25338034-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
  <body>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <link type="text/css" rel="stylesheet" href="IMentor.css">
    <link type="text/css" rel="stylesheet" href="SubjectsSuggestWidget.css">
    <link type="text/css" rel="stylesheet" href="ToMeWidget.css">
    <title>iMentor</title>
    

    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
    
    <script id="test" type="text/javascript" language="javascript" src="imentor/imentor.nocache.js"></script> 

	<div id="fb-root"></div>
	<script src="http://connect.facebook.net/en_US/all.js"></script>
	<script>
		window.fbAsyncInit = function() {
			FB.init({
				  appId : '139577986094709', // 127.0.0.1
				// appId : '272159732811512', // test1.kawanan.com.
				status : true,
				cookie : true,
				xfbml : true,
			});

			FB.getLoginStatus(function(response) {
			
				if (response.status == 'connected') {
					var userId = response.session.uid;
					FB.api(
					{
						method : 'fql.query',
						query : 'SELECT name,sex,email FROM user WHERE uid=' + userId
					},
					function(response) {
						document.getElementById("name").innerHTML = response[0].name;
						document.getElementById("email").innerHTML = response[0].email;

						showIMentorApp(response[0].email, response[0].name, userId);  
					});
				} 
			});
		};
	</script>  
    <div class="main">
    	<div class="top">
			<div id="head" class="menu"></div>
		</div>
		<div class="bar" id="bar" style="visibility:visible" >
			<b id="name"></b>&nbsp;(<b id="email"></b>)&nbsp;<input id="fid" type="hidden"></b>
			<fb:login-button perms='email' autologoutlink='true'></fb:login-button>
		</div>
		<div class="middle" id="middle" width="100%"></div>
		<div id="imentortest"></div>
		<div class="bottom">
			<div class="copyRight"><p>Copyright &copy; 2011 Kawanan | Follow us <a href=""><img src="images/twitter.jpg" width=15 height=15></a> |</p><div class="feedback" id="feedback"></div></div> 
		</div>
	</div>
	</body>
	
</html>
